Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move GetText(), SetText(), and String() from CommonToken to BaseToken #4397

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

googleberg
Copy link
Contributor

This change means that BaseToken satisfies the Token interface.

The recent addition of the String() function to the Token interface means that any custom BaseToken derivatives no longer satisfy the Token interface. Rather than forcing them all to implement their own String() function, put the CommonToken String function (plus GetText and SetText) into the BaseToken.

This change means that BaseToken satisfies the Token interface.

Signed-off-by: Jerry Berg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants